#!/bin/bash

# description: install hadoop

slaveHosts=("dev5" "dev6")

for slave in ${slaveHosts[*]}
do
	rsync -a -v -z -e ssh --delete /usr/local/hadoop-2.7.3/ $slave:/usr/local/hadoop-2.7.3/
	ssh root@$slave "cd /usr/local/ && chown hadoop:hadoop /usr/local/hadoop-2.7.3 -R  && exit 0"
done

echo "hadoop install all end"

